package face.pay.dao;

import face.pay.entity.ProfitInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: zkj
 * @Date: 2019/7/12 11:04
 * @Description:
 */
@Mapper
public interface ProfitInfoDao {

    public void insert(ProfitInfo profitInfo);

    public void update(ProfitInfo profitInfo);

    public List<ProfitInfo> queryListByAgencyId(Integer agencyId);

    public ProfitInfo getById(@Param("id") Integer id);

    /**
     * oem修改代理商的推荐人则分润选择使用最低比例
     * @param recommendId
     * @return
     */
    public ProfitInfo queryMinProfit(@Param("recommendId") Integer recommendId);

}
